package com.wuge.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wuge.common.utils.PageUtils;
import com.wuge.gulimall.product.entity.AttrEntity;
import com.wuge.gulimall.product.vo.AttrVo;
import com.wuge.gulimall.product.vo.SkuItemSaleAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author ñÒ¹ÚÎé
 * @email 1712378864@qq.com
 * @date 2021-06-27 14:36:04
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params,Long category,String type);
    void save(AttrVo attrVo);
    Long getGroupId(Long attrId);
    void updateAttr(AttrVo attrVo);

    List<Long> getSearchAttrBySpuId(List<Long> idList);

    List<SkuItemSaleAttrVo> getAttrs(Long spuId);
}

